
import requests

url = 'https://zh-hans.ipshu.com/'

headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36',
}

data = {
    'wd': 'ip'
}

proxy = {
    'http': '202.101.213.241:23129'
}

response = requests.get(url=url, params=data, headers=headers, proxies=proxy)

content = response.text

with open('./pc/daili.html', 'w', encoding='utf-8')as fp:
    fp.write(content)
